package com.softeem.god.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.softeem.god.entity.Blacklist;
import com.softeem.god.service.BlacklistService;
import com.softeem.god.mapper.BlacklistMapper;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
* @author Administrator
* @description 针对表【blacklist(用户黑名单表)】的数据库操作Service实现
* @createDate 2025-11-01 14:00:00
*/
@Service
public class BlacklistServiceImpl extends ServiceImpl<BlacklistMapper, Blacklist>
    implements BlacklistService {
    
    @Autowired
    private BlacklistMapper blacklistMapper;
    
    @Override
    public IPage<Blacklist> selectBlacklistWithUser(Page<Blacklist> page, Wrapper<Blacklist> wrapper) {
        return blacklistMapper.selectBlacklistWithUser(page, wrapper);
    }
    
    @Override
    public List<Blacklist> selectByUserId(Integer userId) {
        return blacklistMapper.selectByUserId(userId);
    }
}